package com.mt.channel.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mt.channel.api.service.IChannelService;
import com.mt.channel.entity.ChannelEntity;
import com.mt.common.ServiceResult;
@CrossOrigin
@RestController
public class ChannelController {
    @Autowired
    IChannelService channelService;

    @GetMapping("/channel/findInfo")
    public ServiceResult<ChannelEntity> findInfo(Map<String, Object> params) {
        return channelService.findInfo(params);
    }

}
